<?php
class RoleForm extends Zend_Form
{
	public function init()
	{
		$this->setAction('javascript:void(0)');
		$this->setMethod('post');
		$this->setAttrib('id', 'roleform');
		
		$this->addElement('text', 'role_name', array(
			'label' => '角色名称',
			'required' => true		
		));
		
		$this->addElement('checkbox', 'role_permission[]', array(
			'legend' => '用户管理/列表'		
		));
	}
}